﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 战棋模拟器
{
    class 乘骑迅猛龙:Minion
    {
        public List<Minion> OneCostList = new List<Minion>()
        {
            new 无私的英雄(),
            new 鱼人招潮者(),
            new 雄斑虎(),
            new 机械袋鼠(),
            new 愤怒编织者(),
            new 邪魔仆从(),
            new 毒鳍鱼人(),
            new 百变泽鲁斯(),
            new 红色雏龙()
        };
        
        public 乘骑迅猛龙():base()
        {
            Star = 2;
            Attack = 3;
            Health = 2;
            Race = race.beast;
            count = 1;
        }

        public override void Deathrattle()
        {
            byte[] buffer = Guid.NewGuid().ToByteArray();
            int iSeed = BitConverter.ToInt32(buffer, 0);
            Random ran = new Random(iSeed);
            int Randkey;
            for(int i = count;i>0;i--)
            {
                Randkey = ran.Next(0, OneCostList.Count);
                Minion m = OneCostList[Randkey].NewOne();
                pool.Spawn(pool, Place, m);
            }
            base.Deathrattle();
        }


        public override Minion NewOne()
        {
            return new 乘骑迅猛龙();
        }
    }


    class 乘骑迅猛龙_金色 : 乘骑迅猛龙
    {
        public 乘骑迅猛龙_金色() : base()
        {
            Attack *= 2;
            Health *= 2;
            count *= 2;
            buff *= 2;
        }

        public override Minion NewOne()
        {
            return new 乘骑迅猛龙_金色();
        }
    }
}
